package com.company.project.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.company.project.pojo.institution.Institution;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.company.project.pojo.institution.InstitutionDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 单位 Mapper 接口
 * </p>
 *
 * @author 任建波
 * @since 2019-08-09
 */
@Mapper
public interface InstitutionMapper extends BaseMapper<Institution> {

    /**获取单位列表*/
    IPage<InstitutionDTO> getInstitutionList(Page page, @Param("contradictionId") Integer contradictionId);
    /**根据角色获取单位列表*/
    List<InstitutionDTO> getInstitutionListByRoleId(Integer role_id);
    /**根据类型获取单位列表*/
    List<InstitutionDTO> getInstitutionListByType(Integer type);

}
